<%@page language="java" pageEncoding="GBK" import="entity.*,biz.*,biz.impl.*"%>
<%
 request.setCharacterEncoding("GBK");
 String title=request.getParameter("title");
 String content=request.getParameter("content");
 TopicBiz topicBiz=new TopicBizImpl();
 int boardId=9;
 
 Topic topic=new Topic();
 topic.setTitle(title);
 topic.setContent(content);
 topic.setBoardId(boardId);
 topic.setUserId(1);
 topicBiz.addTopic(topic);
 response.sendRedirect("../list.jsp");
 %>